const Router = require("koa-router")

const outRouter = new Router({prefix:"/out"})

const { create,list,remove,itemsList } = require("../controller/out.controller")

// 新增出库记录
outRouter.put("/",create)
// 查询出库记录
outRouter.get("/",list)
// 查询根据仓库和类型查询物品
outRouter.get("/items",itemsList)
// 删除出库记录
outRouter.delete("/",remove)

module.exports = outRouter